sum = int(input("请问输入想随机的次数："))
num = 1
for m in range(0, 4):
    for n in range(0, 4):
        if 8-m-n <= 6 and num<=sum:
            print("第%2d次选择: 红球%d个，黄球%d个，蓝球%d个" %(num, m, n, 8-m-n))
            num += 1
        else:
            break
print("计科1813 24 姜沭琪")